from django.db import models

class Conversa(models.Model):
    texto = models.TextField()
    tempo = models.DateTimeField()
    usuario = models.ForeignKey("Usuario")

    def __unicode__(self):
        return u"%s, %s" % (self.usuario)


class Usuario(models.Model):
    username = models.CharField(max_length=100)
    senha = models.CharField(max_length=100)

    def __unicode__(self):
        return u"%s, %s" % (self.username)